home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / BUS / A-E / Appoint_Master / AppointmentMaster™ v1.1 / stack.txt < prev   
Encoding:
Text File  |  1988-04-25  |  20.7 KB  |  359 lines

  1. -- stack: in.1 
  2. -- format: 8 (HyperCard 1)
  3. -- flags: 0x0 (none)
  4. -- protect password hash: 0
  5. -- maximum user level: 5 (scripting)
  6. -- window: Rect(x1=0, y1=0, x2=0, y2=0)
  7. -- screen: Rect(x1=0, y1=0, x2=0, y2=0)
  8. -- card dimensions: w=0 h=0
  9. -- scroll: x=0 y=0
  10. -- background count: 2
  11. -- first background id: 2621
  12. -- card count: 2
  13. -- first card id: 3049
  14. -- list block id: 2364
  15. -- print block id: 3532
  16. -- font table block id: 0
  17. -- style table block id: 0
  18. -- free block count: 0
  19. -- free size: 0 bytes
  20. -- total size: 74272 bytes
  21. -- stack block size: 9728 bytes
  22. -- created by hypercard version: 0x00000000
  23. -- compacted by hypercard version: 0x00000000
  24. -- modified by hypercard version: 0x00000000
  25. -- opened by hypercard version: 0x00000000
  26. -- patterns[0]: 0x0000000000000000
  27. -- patterns[1]: 0x8000000008000000
  28. -- patterns[2]: 0x8800220088002200
  29. -- patterns[3]: 0x8888222288882222
  30. -- patterns[4]: 0x88AA22AA88AA22AA
  31. -- patterns[5]: 0xCCAA33AACCAA33AA
  32. -- patterns[6]: 0xEEAABBAAEEAABBAA
  33. -- patterns[7]: 0xEEBBBBEEEEBBBBEE
  34. -- patterns[8]: 0xFFBBFFEEFFBBFFEE
  35. -- patterns[9]: 0xFFBBFFFFFFBBFFFF
  36. -- patterns[10]: 0x8010022001084004
  37. -- patterns[11]: 0xFFFFFFFFFFFFFFFF
  38. -- patterns[12]: 0x8822882288228822
  39. -- patterns[13]: 0x1122448811224488
  40. -- patterns[14]: 0xC4800C6843023026
  41. -- patterns[15]: 0xB130031BD8C00C8D
  42. -- patterns[16]: 0xAA00AA00AA00AA00
  43. -- patterns[17]: 0x8822552288225522
  44. -- patterns[18]: 0x8855225588552255
  45. -- patterns[19]: 0x77DD77DD77DD77DD
  46. -- patterns[20]: 0x8000000000000000
  47. -- patterns[21]: 0xAA55AA55AA55AA55
  48. -- patterns[22]: 0x038448300C020101
  49. -- patterns[23]: 0x8244394482010101
  50. -- patterns[24]: 0x8814224188412214
  51. -- patterns[25]: 0x8080413E080814E3
  52. -- patterns[26]: 0x22048C7422179810
  53. -- patterns[27]: 0xBE808808EB088880
  54. -- patterns[28]: 0x25C8328964244C92
  55. -- patterns[29]: 0xA29C41BE2AC914EB
  56. -- patterns[30]: 0x40A00000040A0000
  57. -- patterns[31]: 0x8040200002040800
  58. -- patterns[32]: 0xAA00800088008000
  59. -- patterns[33]: 0xFF80808080808080
  60. -- patterns[34]: 0x081C22C180010204
  61. -- patterns[35]: 0xFF808080FF080808
  62. -- patterns[36]: 0xF87422478F172271
  63. -- patterns[37]: 0xBF00BFBFB0B0B0B0
  64. -- patterns[38]: 0xFF7FBE5DA2418000
  65. -- patterns[39]: 0xFAF5FAF5A050A050
  66. -- checksum: 0x0
  67. ----- HyperTalk script -----
  68. on closeStack
  69.   global whosThere
  70.   put "Have Yourself a SUPER GOOD DAY" && whosThere && "!" into message box
  71.   doMenu "Compact Stack"
  72.   RemShow Meo
  73.   show menubar
  74.   hide message box
  75.   visual effect zoom out
  76. end closeStack
  77.  
  78.  
  79.  
  80. on update theDate
  81.   global whosThere
  82.   ask "What is your name, Please?" with field id 26
  83.   put it into field id 26
  84.   put it into whosThere
  85.   put the long date into field id 5 of card id 3049
  86.   theSchedule schedule
  87. end update
  88.  
  89.  
  90.  
  91. on theSchedule schedule
  92.   set cursor to 4
  93.   put empty into field id 6
  94.   put empty into field id 7
  95.   put empty into field id 8
  96.   put empty into field id 9
  97.   put empty into field id 10
  98.   put empty into field id 11
  99.   put empty into field id 12
  100.   put empty into field id 13
  101.   put empty into field id 14
  102.   put empty into field id 15
  103.   put empty into field id 16
  104.   put empty into field id 17
  105.   put empty into field id 30   --field "Links" is a hidden field
  106.   get field id 5
  107.   convert it to seconds
  108.   put it into thisDay
  109.   put 1 into lineNumber
  110.   repeat with x = 2 to (the number of cards)
  111.     get (field id 2 of card x)  --field "Date"
  112.     if it is empty then next repeat
  113.     convert it to seconds
  114.     if it = thisDay then
  115.       put (the id of card x) into line lineNumber of field "Links"
  116.       add 1 to lineNumber
  117.       get field id 47 of card x  --field "My Name"
  118.       if it = field id 26 of card id 3049 then
  119.         get field id 43 of card x  --field "Appointment Time"
  120.         put it into apptTime
  121.         get field id 1 of card x   --field "ClientName"
  122.         put it into temp2
  123.         put the number of chars of temp2 into countChar
  124.         put 37 into maxChar
  125.         subtract countChar from maxChar
  126.         get field id 6 of card x  --field "ApptDetails"
  127.         put it into temp3
  128.         put "," after char maxChar of temp3
  129.         put empty into item 2 of temp3
  130.         put empty into last char of temp3
  131.         get apptTime  --a variable holding the appointment time.
  132.         if it ‚â• 0900 and it ‚â§ 0914 or it ‚â• 900 and it ‚â§ 914 or it = 9 then
  133.           put temp2 && "‚Äî" & temp3 into line 1 of field id 6
  134.         else
  135.           if it ‚â• 0915 and it ‚â§ 0929 or it ‚â• 915 and it ‚â§ 929 then
  136.             put temp2 && "‚Äî" & temp3 into line 2 of field id 6
  137.           else
  138.             if it ‚â• 0930 and it ‚â§ 0944 or it ‚â• 930 and it ‚â§ 944 then
  139.               put temp2 && "‚Äî" & temp3 into line 3 of field id 6
  140.             else
  141.               if it ‚â• 0945 and it ‚â§ 0959 or it ‚â• 945 and it ‚â§ 959 then
  142.                 put temp2 && "‚Äî" & temp3 into line 4 of field id 6
  143.               else
  144.                 if it ‚â• 1000 and it ‚â§ 1014 or it = 10 then
  145.                   put temp2 && "‚Äî" & temp3 into line 1 of field id 7
  146.                 else
  147.                   if it ‚â• 1015 and it ‚â§ 1029 then
  148.                     put temp2 && "‚Äî" & temp3 into line 2 of field id 7
  149.                   else
  150.                     if it ‚â• 1030 and it ‚â§ 1044 then
  151.                       put temp2 && "‚Äî" & temp3 into line 3 of field id 7
  152.                     else
  153.                       if it ‚â• 1045 and it ‚â§ 1059 then
  154.                         put temp2 && "‚Äî" & temp3 into line 4 of field id 7
  155.                       else
  156.                         if it ‚â• 1100 and it ‚â§ 1114 or it = 11 then
  157.                           put temp2 && "‚Äî" & temp3 into line 1 of field id 8
  158.                         else
  159.                           if it ‚â• 1115 and it ‚â§ 1129 then
  160.                             put temp2 && "‚Äî" & temp3 into line 2 of field id 8
  161.                           else
  162.                             if it ‚â• 1130 and it ‚â§ 1144 then
  163.                               put temp2 && "‚Äî" & temp3 into line 3 of field id 8
  164.                             else
  165.                               if it ‚â• 1145 and it ‚â§ 1159 then
  166.                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 8
  167.                               else
  168.                                 if it ‚â• 1200 and it ‚â§ 1214 or it = 12 then
  169.                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 9
  170.                                 else
  171.                                   if it ‚â• 1215 and it ‚â§ 1229 then
  172.                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 9
  173.                                   else
  174.                                     if it ‚â• 1230 and it ‚â§ 1244 then
  175.                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 9
  176.                                     else
  177.                                       if it ‚â• 1245 and it ‚â§ 1259 then
  178.                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 9
  179.                                       else
  180.                                         if it ‚â• 100 and it ‚â§ 114 or it ‚â• 1300 and it ‚â§ 1314 or it = 1 then
  181.                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 10
  182.                                         else
  183.                                           if it ‚â• 115 and it ‚â§ 129 or it ‚â• 1315 and it ‚â§ 1329 then
  184.                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 10
  185.                                           else
  186.                                             if it ‚â• 130 and it ‚â§ 144 or it ‚â• 1330 and it ‚â§ 1344 then
  187.                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 10
  188.                                             else
  189.                                               if it ‚â• 145 and it ‚â§ 159 or it ‚â• 1345 and it ‚â§ 1359 then
  190.                                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 10
  191.                                               else
  192.                                                 if it ‚â• 200 and it ‚â§ 214 or it ‚â• 1400 and it ‚â§ 1414 or it = 2 then
  193.                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 11
  194.                                                 else
  195.                                                   if it ‚â• 215 and it ‚â§ 229 or it ‚â• 1415 and it ‚â§ 1429 then
  196.                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 11
  197.                                                   else
  198.                                                     if it ‚â• 230 and it ‚â§ 244 or it ‚â• 1430 and it ‚â§ 1444 then
  199.                                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 11
  200.                                                     else
  201.                                                       if it ‚â• 245 and it ‚â§ 259 or it ‚â• 1445 and it ‚â§ 1459 then
  202.                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 11
  203.                                                       else
  204.                                                         if it ‚â• 300 and it ‚â§ 314 or it ‚â• 1500 and it ‚â§ 1514 or it = 3 then
  205.                                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 12
  206.                                                         else
  207.                                                           if it ‚â• 315 and it ‚â§ 329 or it ‚â• 1515 and it ‚â§ 1529 then
  208.                                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 12
  209.                                                           else
  210.                                                             if it ‚â• 330 and it ‚â§ 344 or it ‚â• 1530 and it ‚â§ 1544 then
  211.                                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 12
  212.                                                             else
  213.                                                               if it ‚â• 345 and it ‚â§ 359 or it ‚â• 1545 and it ‚â§ 1559 then
  214.                                                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 12
  215.                                                               else
  216.                                                                 if it ‚â• 400 and it ‚â§ 414 or it ‚â• 1600 and it ‚â§ 1614 or it = 4 then
  217.                                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 13
  218.                                                                 else
  219.                                                                   if it ‚â• 415 and it ‚â§ 429 or it ‚â• 1615 and it ‚â§ 1629 then
  220.                                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 13
  221.                                                                   else
  222.                                                                     if it ‚â• 430 and it ‚â§ 444 or it ‚â• 1630 and it ‚â§ 1644 then
  223.                                                                       put temp2 && "‚Äî" & temp3 into line 2 of field id 13
  224.                                                                     else
  225.                                                                       if it ‚â• 445 and it ‚â§ 459 or it ‚â• 1645 and it ‚â§ 1659 then
  226.                                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 13
  227.                                                                       else
  228.                                                                         if it ‚â• 500 and it ‚â§ 514 or it ‚â• 1700 and it ‚â§ 1714 or it = 5 then
  229.                                                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 14
  230.                                                                         else
  231.                                                                           if it ‚â• 515 and it ‚â§ 529 or it ‚â• 1715 and it ‚â§ 1729 then
  232.                                                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 14
  233.                                                                           else
  234.                                                                             if it ‚â• 530 and it ‚â§ 544 or it ‚â• 1730 and it ‚â§ 1744 then
  235.                                                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 14
  236.                                                                             else
  237.                                                                               if it ‚â• 545 and it ‚â§ 559 or it ‚â• 1745 and it ‚â§ 1759 then
  238.                                                                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 14
  239.                                                                               else
  240.                                                                                 if it ‚â• 600 and it ‚â§ 614 or it ‚â• 1800 and it ‚â§ 1814 or it = 6 then
  241.                                                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 15
  242.                                                                                 else
  243.                                                                                   if it ‚â• 615 and it ‚â§ 629 or it ‚â• 1815 and it ‚â§ 1829 then
  244.                                                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 15
  245.                                                                                   else
  246.                                                                                     if it ‚â• 630 and it ‚â§ 644 or it ‚â• 1830 and it ‚â§ 1844 then
  247.                                                                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 15
  248.                                                                                     else
  249.                                                                                       if it ‚â• 645 and it ‚â§ 659 or it ‚â• 1845 and it ‚â§ 1859 then
  250.                                                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 15
  251.                                                                                       else
  252.                                                                                         if it ‚â• 700 and it ‚â§ 714 or it ‚â• 1900 and it ‚â§ 1914 or it = 7 then
  253.                                                                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 16
  254.                                                                                         else
  255.                                                                                           if it ‚â• 715 and it ‚â§ 729 or it ‚â• 1915 and it ‚â§ 1929 then
  256.                                                                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 16
  257.                                                                                           else
  258.                                                                                             if it ‚â• 730 and it ‚â§ 744 or it ‚â• 1930 and it ‚â§ 1944 then
  259.                                                                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 16
  260.                                                                                             else
  261.                                                                                               if it ‚â• 745 and it ‚â§ 759 or it ‚â• 1945 and it ‚â§ 1959 then
  262.                                                                                                 put temp2 &&"‚Äî" & temp3 into line 4 of field id 16
  263.                                                                                               else
  264.                                                                                                 if it ‚â• 800 and it ‚â§ 814 or it ‚â• 2000 and it ‚â§ 2014 or it = 8 then
  265.                                                                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 17
  266.                                                                                                 else
  267.                                                                                                   if it ‚â• 815 and it ‚â§ 829 or it ‚â• 2015 and it ‚â§ 2029 then
  268.                                                                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 17
  269.                                                                                                   else
  270.                                                                                                     if it ‚â• 830 and it ‚â§ 844 or it ‚â• 2030 and it ‚â§ 2044 then
  271.                                                                                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 17
  272.                                                                                                     else
  273.                                                                                                       if it ‚â• 845 and it ‚â§ 859 or it ‚â• 2045 and it ‚â§ 2059 then
  274.                                                                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 17
  275.                                                                                                       end if
  276.                                                                                                     end if
  277.                                                                                                   end if
  278.                                                                                                 end if
  279.                                                                                               end if
  280.                                                                                             end if
  281.                                                                                           end if
  282.                                                                                         end if
  283.                                                                                       end if
  284.                                                                                     end if
  285.                                                                                   end if
  286.                                                                                 end if
  287.                                                                               end if
  288.                                                                             end if
  289.                                                                           end if
  290.                                                                         end if
  291.                                                                       end if
  292.                                                                     end if
  293.                                                                   end if
  294.                                                                 end if
  295.                                                               end if
  296.                                                             end if
  297.                                                           end if
  298.                                                         end if
  299.                                                       end if
  300.                                                     end if
  301.                                                   end if
  302.                                                 end if
  303.                                               end if
  304.                                             end if
  305.                                           end if
  306.                                         end if
  307.                                       end if
  308.                                     end if
  309.                                   end if
  310.                                 end if
  311.                               end if
  312.                             end if
  313.                           end if
  314.                         end if
  315.                       end if
  316.                     end if
  317.                   end if
  318.                 end if
  319.               end if
  320.             end if
  321.           end if
  322.         end if
  323.       end if
  324.     end if
  325.   end repeat
  326. end theSchedule
  327.  
  328.  
  329.  
  330. on RemShow Meo
  331.   get the date
  332.   convert it to dateItems
  333.   if item 3 of it = 1 or item 3 of it =15 then
  334.     beep 2
  335.     put "Paid your SHAREWARE FEE yet ? If So‚ÄîTHANKS! If No ‚Äî PLEASE DO"
  336.     wait 5 seconds
  337.     play boing
  338.     hide message box
  339.   end if
  340. end RemShow
  341.  
  342.  
  343.  
  344. on openStack
  345.   visual zoom in
  346.   hide menubar
  347.   hide message box
  348.   show field id 25  --Copyright field-DO NOT REMOVE
  349.   update theDate
  350.   RemShow Meo
  351. end openStack
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.